/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dalInterface;

import java.rmi.Remote;
import java.rmi.RemoteException;
import utils.DataTable;

/**
 *
 * @author salm
 */
public interface DALAccount extends Remote
{
    DataTable getAccount(String userName) throws RemoteException;
    DataTable getAccount(String userName, String password) throws RemoteException;
    boolean isAccountExist(String userName) throws RemoteException;
    boolean changePassword(String userName, String oldPassword, String newPassword) throws RemoteException;
    
    boolean insertAccount(String userName, String password, String name) throws RemoteException;
    
    DataTable getAccountInfo( String userName ) throws RemoteException;
    
    void updateAccountExp(String userName, long newExp) throws RemoteException;
}